<template>
  <div>
    <img src="./assets/4721bc68db791b75963769b15ab785a6.png" v-show="flag" alt="" />
    <button @click="fn">点击以后显示和隐藏</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      flag: true
    }
  },
  methods: {
    fn() {
      this.flag = !this.flag
    }
  }
}
</script>

<style></style>
